import request from '@/utils/request'

// 查询航路点信息列表
export function listWaypoint(query) {
  return request({
    url: '/baseinfo/waypoint/list',
    method: 'get',
    params: query
  })
}

// 查询航路点信息详细
export function getWaypoint(pointid) {
  return request({
    url: '/baseinfo/waypoint/' + pointid,
    method: 'get'
  })
}

// 新增航路点信息
export function addWaypoint(data) {
  return request({
    url: '/baseinfo/waypoint',
    method: 'post',
    data: data
  })
}

// 修改航路点信息
export function updateWaypoint(data) {
  return request({
    url: '/baseinfo/waypoint',
    method: 'put',
    data: data
  })
}

// 删除航路点信息
export function delWaypoint(pointid) {
  return request({
    url: '/baseinfo/waypoint/' + pointid,
    method: 'delete'
  })
}
